Crate webc

source · []

Structs

Executable file, stored in the .atoms section of the file
Executable file, stored in the .atoms section of the file
Calculated checksum of the file
Command that can be run by a given implementation
The error type used within the read module.
Directory or file entry, parsed without any allocation
A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.
Manifest of the file, see spec §2.3.1
Same as Manifest, but doesn’t require the atom.signature
Owned version of the FsEntry with fs_type = FsEntryType::Dir
Owned version of the FsEntry with fs_type = FsEntryType::File
Options on what to parse from the file
Signature of the checksum of the file, such that verify(WebC::get_checksum(), public_key) is valid
A parsed URL record.
Filesystem volume, containing the uncompressed files in an ordered directory structure
Header of a filesystem volume, describing a serialized list of directories and file paths
Container file, lazily parsed from a set of &'data [u8] bytes
Owned version of the WebC file that carries its data along the parsed WebC<'static>

Enums

Specifies whether an input path is a directory or a file (since this distinction can’t be made from the filename alone)
Whether the file is a directory or a file
Whether to sign the bytes when deserializing the WebC file to bytes
Same as FsEntry but with an owned text: String, instead of a &str
Information about the package name
Dependency of this file, encoded as either a URL or a manifest (in case of vendored dependencies)
The Value enum, a loosely typed way of representing any valid CBOR value.

Constants

File identification bytes stored at the beginning of the file.
File identification bytes stored at the beginning of the file.

Functions

Since env::temp_dir() panics on wasm32-wasi, this function provides a non-panicking replacement

Type Definitions

Annotation = free-form metadata to be used by the atom
The result type used within the read module.